#ifndef THREAD_H
#define THREAD_H

#include <pthread.h>

class Thread {
 public:
  Thread();
  void start();
  void stop();
  void sleep(int seconds);
  
  static void join(Thread *thread);

 protected:
  virtual void run() = 0;

 private:
  pthread_t mThread;
  static void* startThread(void *thread);
};

#endif
